<template>
	<uv-popup ref="popupRef" mode="bottom" round="28rpx" closeable>
		<view class="reasonPop">
			<view class="title">驳回原因</view>
			<scroll-view scroll-y style="max-height: 60vh;">
				<view class="reason">
					{{ reason }}
				</view>
			</scroll-view>
		</view>
	</uv-popup>
</template>

<script setup>
	import {
		reactive,
		ref,
	} from 'vue'
	const reason = ref('')

	const popupRef = ref(null)
	const handOpen = async (e) => {
		reason.value = e
		popupRef.value.open()
	}
	const handClose = () => {
		popupRef.value.close()
	}
	defineExpose({
		handOpen
	})
</script>

<style lang="scss" scoped>
	.reasonPop {
		padding: 30rpx 24rpx;
		padding-bottom: 58rpx;
		padding-bottom: calc(constant(safe-area-inset-bottom) + 58rpx);
		padding-bottom: calc(env(safe-area-inset-bottom) + 58rpx);

		.title {
			text-align: center;
			font-size: 36rpx;
			font-family: PingFang SC-Bold, PingFang SC;
			font-weight: bold;
			color: #333333;
		}

		.reason {
			margin-top: 44rpx;
		}
	}
</style>